<?php
global $references;
$references = array(
    "controller.query" => array(
        "class" => "Pageley_Controller_TransactionalForm",
        "constructor" => array(
            "views" => array(
                "success" => "list-entities"
            ),
            "commandClassName" => "Pageley_Basic_Command_Query",
            "unitOfWork" => "#{unitOfWork}"
        )
    ),
    
    "controller.find" => array(
        "class" => "Pageley_Controller_TransactionalForm",
        "constructor" => array(
            "views" => array(
                "success" => "show-entity"
            ),
            "commandClassName" => "Pageley_Basic_Command_Get",
            "unitOfWork" => "#{unitOfWork}"
        )
    ),
    
    "controller.delete" => array(
        "class" => "Pageley_Controller_TransactionalForm",
        "constructor" => array(
            "views" => array(
                "success" => "entity-deleted"
            ),
            "commandClassName" => "Pageley_Basic_Command_Delete",
            "unitOfWork" => "#{unitOfWork}"
        )
    ),
    
    "controller.save" => array(
        "class" => "Pageley_Controller_Dynamic",
        "constructor" => array(
            "views" => array(
                "success" => "show-entity",
                "failure" => "show-entity"
            ),
            "commandClassName" => "Pageley_Basic_Command_Save",
            "unitOfWork" => "#{unitOfWork}"
        )
    ),

    "controller.include" => array(
        "class" => "Pageley_Controller_Basic",
        "constructor" => array(
            "views" => array(
                "success" => ""
            )
        )
    )
);